from polymerization_frame import PolymerizationFrame

from Project.HTools.json.json_main import JSONPanelMain
from Project.HTools.time.time_main import TimePanelMain
from Project.HTools.generate.generate_main import GenerateMain
from Project.HTools.encry.encry_main import EncryPanelMain
from Project.HTools.generate.qr.qr_code_main import QRCodeMain
from Project.HTools.tcp.socket_main import SocketMain
from Project.HTools.about.about_panel import AboutPanel


class PolymerizationMain(PolymerizationFrame):
    def __init__(self, parent):
        PolymerizationFrame.__init__(self, parent)
        self.Centre()
        self.__init_view()

    def __init_view(self):
        self.m_notebook2.AddPage(JSONPanelMain(self.m_notebook2), 'JSON格式化工具')
        self.m_notebook2.AddPage(TimePanelMain(self.m_notebook2), '时间戳工具')
        self.m_notebook2.AddPage(GenerateMain(self.m_notebook2), '生成')
        self.m_notebook2.AddPage(EncryPanelMain(self.m_notebook2), '编解码')
        self.m_notebook2.AddPage(QRCodeMain(self.m_notebook2), '生成二维码')
        self.m_notebook2.AddPage(SocketMain(self.m_notebook2), 'TCP调试')
        self.m_notebook2.AddPage(AboutPanel(self.m_notebook2), '关于')
